package jp.dev7.enchant.tot.controller;

import jp.dev7.enchant.tot.meta.MessageMeta;

import org.slim3.controller.validator.RequiredValidator;
import org.slim3.controller.validator.Validators;

public class PostMessageController extends AbsJsonpController {

    private MessageMeta m = MessageMeta.get();

    @Override
    protected Object exec() throws Exception {
        Validators v = new Validators(request);
        v.add(m.fromName, RequiredValidator.INSTANCE);
        v.add(m.toName, RequiredValidator.INSTANCE);

        return null;
    }

}
